package com.chocus.core.bean.product;

import java.io.Serializable;
import java.util.Date;

public class Product implements Serializable {
	/**
	 * ID����Ʒ���
	 */
	private Long id;

	/**
	 * ����ID
	 */
	private Long typeId;

	/**
	 * Ʒ��ID
	 */
	private Long brandId;

	/**
	 * ��Ʒ����
	 */
	private String name;

	/**
	 * ���� ��λ:��
	 */
	private Float weight;

	/**
	 * �Ƿ���Ʒ:0:��Ʒ,1:��Ʒ
	 */
	private Boolean isNew;

	/**
	 * �Ƿ�����:0,�� 1:��
	 */
	private Boolean isHot;

	/**
	 * �Ƽ� 1�Ƽ� 0 ���Ƽ�
	 */
	private Boolean isCommend;

	/**
	 * ���¼�:0�� 1��
	 */
	private Boolean isShow;

	/**
	 * �Ƿ�ɾ��:0ɾ��,1,ûɾ��
	 */
	private Boolean isDel;

	/**
	 * ����
	 */
	private Integer sales;

	/**
	 * ��Ʒ����
	 */
	private String description;

	/**
	 * ��װ�嵥
	 */
	private String packageList;

	/**
	 * ��Ʒ���Լ�
	 */
	private String features;

	/**
	 * ��ɫ��
	 */
	private String colors;

	/**
	 * �ߴ缯
	 */
	private String sizes;

	/**
	 * ���ʱ��
	 */
	private Date createTime;

	/**
	 * ���ʱ��
	 */
	private Date checkTime;

	/**
	 * �����ID
	 */
	private String createUserId;

	/**
	 * �����ID
	 */
	private String checkUserId;

	/**
	 * ͼƬ��Ʒ��
	 */
	private String imgUrl;

	/**
	 * 临时字段，价格
	 */
	private float price;

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	private static final long serialVersionUID = 1L;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getTypeId() {
		return typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	public Long getBrandId() {
		return brandId;
	}

	public void setBrandId(Long brandId) {
		this.brandId = brandId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public Float getWeight() {
		return weight;
	}

	public void setWeight(Float weight) {
		this.weight = weight;
	}

	public Boolean getIsNew() {
		return isNew;
	}

	public void setIsNew(Boolean isNew) {
		this.isNew = isNew;
	}

	public Boolean getIsHot() {
		return isHot;
	}

	public void setIsHot(Boolean isHot) {
		this.isHot = isHot;
	}

	public Boolean getIsCommend() {
		return isCommend;
	}

	public void setIsCommend(Boolean isCommend) {
		this.isCommend = isCommend;
	}

	public Boolean getIsShow() {
		return isShow;
	}

	public void setIsShow(Boolean isShow) {
		this.isShow = isShow;
	}

	public Boolean getIsDel() {
		return isDel;
	}

	public void setIsDel(Boolean isDel) {
		this.isDel = isDel;
	}

	public Integer getSales() {
		return sales;
	}

	public void setSales(Integer sales) {
		this.sales = sales;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPackageList() {
		return packageList;
	}

	public void setPackageList(String packageList) {
		this.packageList = packageList;
	}

	public String getFeatures() {
		return features;
	}

	public void setFeatures(String features) {
		this.features = features == null ? null : features.trim();
	}

	public String getColors() {
		return colors;
	}

	public void setColors(String colors) {
		this.colors = colors == null ? null : colors.trim();
	}

	public String getSizes() {
		return sizes;
	}

	public void setSizes(String sizes) {
		this.sizes = sizes == null ? null : sizes.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId == null ? null : createUserId.trim();
	}

	public String getCheckUserId() {
		return checkUserId;
	}

	public void setCheckUserId(String checkUserId) {
		this.checkUserId = checkUserId == null ? null : checkUserId.trim();
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl == null ? null : imgUrl.trim();
	}

	public String[] getImages() {
		return imgUrl == null ? null : imgUrl.split(",");
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(id);
		sb.append(", typeId=").append(typeId);
		sb.append(", brandId=").append(brandId);
		sb.append(", name=").append(name);
		sb.append(", weight=").append(weight);
		sb.append(", isNew=").append(isNew);
		sb.append(", isHot=").append(isHot);
		sb.append(", isCommend=").append(isCommend);
		sb.append(", isShow=").append(isShow);
		sb.append(", isDel=").append(isDel);
		sb.append(", sales=").append(sales);
		sb.append(", description=").append(description);
		sb.append(", packageList=").append(packageList);
		sb.append(", features=").append(features);
		sb.append(", colors=").append(colors);
		sb.append(", sizes=").append(sizes);
		sb.append(", createTime=").append(createTime);
		sb.append(", checkTime=").append(checkTime);
		sb.append(", createUserId=").append(createUserId);
		sb.append(", checkUserId=").append(checkUserId);
		sb.append(", imgUrl=").append(imgUrl);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}
}